﻿package  
{
	import flash.display.MovieClip;
	
	public class Village2 extends Background 
	{		
		public function Village2() 
		{
			init();
		}
		
		private function init():void
		{
			SetInfo();
		}
		
		override protected function SetInfo():void
		{
			AreaName = Constants.Area_Village;
			ExitUp = "Village1";
			ExitDown = "Village3";
			ExitDownX = 306;
			ExitDownY = 147;
			RandomBattles = false;
			
			
			if (Quest > 0)
			{
				removeChild(trip_0);
			}
			if (Quest > 1)
			{
				removeChild(trip_1);
			}
			
			person_0_11.Move(2, true);
		}
		
		public override function GetMessage(index:int):String
		{
			switch(index)
			{
				case 0: //Mother
					if (Quest == 0)
					{
					return (StringHelper.WriteMessage(11, "Oh!" + 
						Constants.MovementDialogue + Constants.CommandSplitCharacter + 0 + Constants.CommandSplitCharacter + 0, true) +
						StringHelper.WriteMessage(11, "You're awake, finally! How did you sleep?", true) + 
						StringHelper.WriteMessage(0, "Fine... Where's Oliver?", true) + 
						StringHelper.WriteMessage(11, "Well, since you were sleeping in today, I sent your brother out to do " + 
						"your chores. He went to the Cave of Echoes to draw water from the well", true) + 
						StringHelper.WriteMessage(0, "Mom! It's giant crab season out on the beach! He's too young to defend himself!", true) + 
						StringHelper.WriteMessage(11, "Don't worry! I sent Fido with your brother to protect him. Actually... " + 
						"They've been gone a while. Maybe you should go down to the Cave of Echoes and check on them?", true) + 
						StringHelper.WriteMessage(0, "Ugh, Mom", true) +
						StringHelper.WriteMessage(11, "What?", true) +
						StringHelper.WriteMessage(0, "...It's nothing. Don't worry about it" + 
						Constants.QuestDialogue, false));
					}
					else
					{
						return StringHelper.WriteMessage(11, "Be careful out there", false);
					}
				case 1: //inner monologue
					if (Quest == 1)
					{
					return (StringHelper.WriteMessage(0, "(I can't believe Mom sent Oliver to the Cave of Echoes. " + 
						"He's too young to protect himself from the giant crabs that are out on the beach this time of year)", true) +
						StringHelper.WriteMessage(0, "(I should make sure I get my wooden club from my room and equip it " +
						"before I head down to the beach)" + Constants.QuestDialogue, false));
					}
					else
					{
						return StringHelper.Empty;
					}
				break;
				default:
					return StringHelper.Empty;
				break;
			}
		}
	}
}
